<template>
  <div class="home">
    <HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
    <TodoCom></TodoCom>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import HelloWorld from '@/components/HelloWorld.vue' // @ is an alias to /src
import TodoCom from '@/views/TodoCom.vue'
import { AxiosResponse } from 'axios'
import { getComments } from '../api/article' // @ is an alias to /src
interface IComments {
  body: string,
  email: string,
  id: number,
  name: string,
  postId: number
}
const res = await getComments<AxiosResponse<IComments[]>>({ postId: 1 })
console.log(res.data)

</script>
